﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../../Scripts/config.js"></script>
    <script type="text/javascript" src="../../../Comm/Gener.js"></script>
    <script src="DDLBar.js" type="text/javascript"></script>
    <script src="../../CCFlowEnum.js" type="text/javascript"></script>
    <script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
    <script src="../../../Scripts/vue.js" type="text/javascript"></script>
</head>
<body>
    <div id="App">
        <div id="bar"> </div>
        <fieldset>
            <legend>请按照约定的格式设置从人员发送到人员的路由路径.</legend>
            <br />
            <textarea id="RB_ByFromEmpToEmp" style="width:100%;height:50px" v-model="byFromEmpToEmp"></textarea>
        </fieldset>

        <fieldset>
            <legend id="help">说明</legend>
            <ul>
                <li>格式为 @zhangsan,lisi@wangwu,zhaoliu      从如果是张三发送的就发送到李四身上. 多个人员对用@分开. </li>
                <li>如果没有找到，就按照默认值寻找: @Defualt,zhangsan  着一样配置表示，没有找到人就按照默认值投递.</li>

            </ul>
        </fieldset>
    </div>
    <script type="text/javascript">
        var Baseinfo = new Vue({
            el: '#App',
            data: {
                deliverWay: DeliveryWay.ByFromEmpToEmp,
                byFromEmpToEmp: '',
                nodeId: GetQueryString("FK_Node")
            },
            created() {
                InitBar(this.deliverWay);
                var node = new Entity("BP.WF.Node", this.nodeId);
                if (node.DeliveryWay == DeliveryWay.ByFromEmpToEmp) {
                    this.byFromEmpToEmp = node.DeliveryParas;
                }
            }
        });
        function Save() {
            var node = new Entity("BP.WF.Node", Baseinfo.nodeId);
            node.DeliveryWay = Baseinfo.deliverWay;
            if (Baseinfo.byFromEmpToEmp == "") {
                alert("请设置从人员发送到人员的路由路径.");
                return;
            }

            node.DeliveryParas = Baseinfo.byFromEmpToEmp;
            node.Update();
        }
    </script>
</body>
</html>
